import httpRequest from '../httpRequest'

export const getAll = () => {
  return httpRequest.get('/user/list')
}

export const getByCondition = (data) => {
  return httpRequest.post('/user/get', data)
}

export const save = (data) => {
  return httpRequest.post('/user/save', data)
}

export const deleteUser = (id) => {
  return httpRequest.delete(`/user/delete/${id}`)
} 
export const updatePassword = (data) => {
  return httpRequest.post('/user/update/password', data)
}
